package com.sy.mapper.allocate;

import com.sy.bean.allocate.HomeInventory;
import com.sy.bean.allocate.Inventory;
import com.sy.bean.allocate.InventorySave;
import com.sy.bean.allocate.Stock;
import com.sy.bean.pucharse.excel.InventoryExc;
import com.sy.bean.pucharse.excel.SupplierExcel;
import com.sy.common.bean.PageBean;
import com.sy.common.crud.IMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface InventoryMapper extends IMapper<Inventory> {
    /**
     * 批量新增盘点记录
     * @param inventorySaveList 新增条件
     * @return 行数
     */
    int batchSave(@Param("inventorySaveList") List<InventorySave> inventorySaveList);
    /**
     * 导出的盘点记录
     * @param map
     * @return
     */
    List<InventoryExc> exportInv(Map map);
    /**
     * 库存列表
     * @param map
     * @return
     */
    List<Stock> queryStock(Map map);

    /**
     * 库存总量
     * @return bean
     */
    HomeInventory queryHomeInventory(int eid);
}
